<?php
/**
 * SocialSalary install script
 *
 * Coded by Jonathan Gorard, 2012
 *
 * @package SocialSalary
 * @subpackage Core
 */

// check for PHP 4 before we do anything else
if (version_compare(PHP_VERSION, '5.0.0', '<')) {
	echo "Your server's version of PHP (" . PHP_VERSION . ") is too old to run SocialSalary.\n";
	exit;
}

require_once(dirname(__FILE__) . "/install/SocialSalaryInstaller.php");

$installer = new SocialSalaryInstaller();

$step = get_input('step', 'welcome');
$installer->run($step);
